package com.dp.bridge.exp02;

import java.math.BigDecimal;

/**
 * @Author: Ruomeng
 * @Date: 2024/11/29
 * @Description : design-pattern
 * 支付抽象类
 * @Version: 1.0
 */
public abstract class Pay {

    // 桥接对象
    protected IPayMode payMode;

    public Pay(IPayMode payMode) {
        this.payMode = payMode;
    }

    // 划账
    public abstract String transfer(String uid, String tradeId, BigDecimal amount);

}
